<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <!-- 输入框 密码框文本框 文本域 -->
    <input type="text" v-model="msg">
    <br>
    {{ msg }}
    <hr>
    <!-- 单选框 -->
    性别：
    <label for="male">男</label>
    <input type="radio" value="男" id="male" v-model="gender">
    <label for="female">女</label>
    <input type="radio" value="女" id="female" v-model="gender">
    <br>
    {{gender}}
    <hr>
    <!-- 多选 -->
    爱好：
    <label for="lanqiu">篮球</label>
    <input type="checkbox" value="篮球" id="lanqiu" v-model="hobbies">
    <label for="zuqiu">足球</label>
    <input type="checkbox" value="足球" id="zuqiu" v-model="hobbies">
    <label for="piqiu">皮球</label>
    <input type="checkbox" value="皮球" id="piqiu" v-model="hobbies">
    <br>
    {{ hobbies }}
    <hr>
    是不是大美女
    <input type="checkbox" v-model="isBeauty"/>
    {{
      isBeauty?'大美女':'好姑娘'
    }}
    <!-- 将复选框checked属性和布尔值进行绑定 -->
  </div>
  <script src="./vue.global.js"></script>
  <script>
    const { createApp } = Vue;
    const app = createApp({
      data(){
        return {
          msg: '初始值',
          gender: '女',
          hobbies: [
            '足球'
          ],
          isBeauty: true
        }
      }
    })
    app.mount('#app')
  </script>
</body>
</html>